package com.ruoyi.common.utils;

/**
 * 校验身份证工具
 */
public class IdCardUtils {
    /**
     * 就校验18位吧
     * @param idNumber
     * @return
     */
    public static boolean isIDNumber(String idNumber) {
        if (idNumber == null || "".equals(idNumber)) {
            return false;
        }
        idNumber = idNumber.trim();
        return idNumber.length() == 18;
    }
}
